
package com.jf.cloud.delivery.controller.app;

import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.delivery.service.DeliveryCompanyService;
import com.jf.cloud.delivery.vo.DeliveryCompanyVO;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 物流公司
 *
 * @author zz
 * @date 2020-12-07 15:10:00
 */
@RestController("appDeliveryCompanyController")
@RequestMapping("/delivery_company")
@Tag(name = "物流公司")
public class DeliveryCompanyController {

    @Autowired
    private DeliveryCompanyService deliveryCompanyService;

    @GetMapping("/list")
    @Operation(summary = "获取物流公司列表" , description = "获取物流公司列表")
    public ServerResponseEntity<List<DeliveryCompanyVO>> list() {
        return ServerResponseEntity.success(deliveryCompanyService.list());
    }
}
